package com.shoplook2025.category.service;
import com.shoplook2025.category.model.Category;
import java.util.List;

/**
 * @author yan
 * @date 2025/8/26
 */
public interface CategoryService {
    //前端
    List<Category> findAll(Category category);
    //查询全部
    List<Category> findAll();
    //查询树形结构
    List<Category> findTree();

    //以树形结构返回
    Category findById(Integer id);

    boolean save(Category category);

    boolean update(Category category);

    int deleteById(Integer id);
}
